package com.qlylkj.lbk.model.api

import com.qlylkj.lbk.model.bean.BannerList
import com.qlylkj.lbk.model.bean.Upload
import com.qlylkj.lbk.model.bean.base.ResponseEntity
import okhttp3.MultipartBody
import retrofit2.http.GET
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

interface CommonApi {

    @Multipart
    @POST("sys/common/upload")
    suspend fun uploadFile(@Part file: MultipartBody.Part): ResponseEntity<String>

    @GET("banners/list")
    suspend fun getBannerList(): ResponseEntity<BannerList>
}